#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>

#include <vector>

#include <string>

#include "integration.h"




void FileUtilTest() {
	Cloud::FileUtil fu("./");
	std::vector<std::string> array;
	fu.ScanDirectory(&array);

	for (auto& it: array) {
		std::cout << it << std::endl;
	}
}

void DataManagerTest() {
	//Cloud::FileUtil fu("./");
	//std::vector<std::string> array;
	//fu.ScanDirectory(&array);
	//Cloud::DataManager data(BACKUPFILE);
	//for (auto& it : array) {
	//	data.Insert(it, "hello_world");
	//}

	Cloud::DataManager data(BACKUPFILE);
	std::string fileid;
	data.GetOneByFname(".\\cloud.cpp", &fileid);
	std::cout << fileid << std::endl;

}

void RunTest() {
	Cloud::Backup bk(BACKUPDIR, BACKUPFILE);
	bk.RunModule();
}

int main() {

	//FileUtilTest();

	//DataManagerTest();

	RunTest();
	return 0;
}